<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	  view,
	     scroll-view,
	     swiper,
	     swiper-item,
	     cover-view,
	     cover-image,
	     icon,
	     text,
	     rich-text,
	     progress,
	     button,
	     checkbox,
	     form,
	     input,
	     label,
	     radio,
	     slider,
	     switch,
	     textarea,
	     navigator,
	     audio,
	     camera,
	     image,
	     video {
	        box-sizing: border-box;
	     }
	
	     /* 骨架屏替代方案 */
	     .Skeleton {
	        background: #f3f3f3;
	        padding: 20upx 0;
	        border-radius: 8upx;
	     }
	
	     /* 图片载入替代方案 */
	     .image-wrapper {
	        font-size: 0;
	        background: #f3f3f3;
	        border-radius: 4px;
	
	        image {
	            width: 100%;
	            height: 100%;
	            transition: .6s;
	            opacity: 0;
	
	            &.loaded {
	                opacity: 1;
	            }
	        }
	     }
	
	     .clamp {
	        overflow: hidden;
	        text-overflow: ellipsis;
	        white-space: nowrap;
	        display: block;
	     }
	
	     .common-hover {
	        background: #f5f5f5;
	     }
	
	     /*边框*/
	     .b-b:after,
	     .b-t:after {
	        position: absolute;
	        z-index: 3;
	        left: 0;
	        right: 0;
	        height: 0;
	        content: '';
	        transform: scaleY(.5);
	        border-bottom: 1px solid $uni-border-color;
	     }
	
	     .b-b:after {
	        bottom: 0;
	     }
	
	     .b-t:after {
	        top: 0;
	     }
	
	     /* button样式改写 */
	     uni-button,
	     button {
	        height: 80upx;
	        line-height: 80upx;
	        font-size: $uni-font-size-lg + 2rpx;
	        font-weight: normal;
	
	        &.no-border:before,
	        &.no-border:after {
	            border: 0;
	        }
	     }
	
	     uni-button[type=default],
	     button[type=default] {
	        color: #303133;
	     }
	
	     /* input 样式 */
	     .input-placeholder {
	        color: #999999;
	     }
	
	     .placeholder {
	        color: #999999;
	     }
</style>
